//
//  LFShopTableViewCell.m
//  LoveFruit
//
//  Created by 马海江 on 16/9/27.
//  Copyright © 2016年 张令林. All rights reserved.
//

#import "LFShopTableViewCell.h"
#import "LFShopCollectModel.h"
@interface LFShopTableViewCell ()


@end

@implementation LFShopTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    UIView* redLine = [[UIView alloc] init];
    redLine.backgroundColor = [UIColor lightGrayColor];
    [self.contentView addSubview:redLine];
    
    // 线约束
    [redLine mas_makeConstraints:^(MASConstraintMaker* make) {
        make.left.offset(0);
        make.right.offset(0);
        make.bottom.offset(0);
        make.height.offset(1 / [UIScreen mainScreen].scale);
    }];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}
- (void)setShopModel:(LFShopCollectModel *)shopModel{
    _shopModel = shopModel;
    // 店名
    self.name.text = shopModel.name;
    // 营业时间
    self.time.text = shopModel.time;
    // 地址
    self.address.text = shopModel.address;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end
